import Sequelize from 'sequelize'
import config from '../config/db'

const mysql = new Sequelize(config.database, config.username, config.password, {
    host: config.host,
    dialect: 'mysql',
    operatorsAliases: false,
    pool: {
        max: 5,
        min: 0,
        idle: 30000
    },
    define: {
        charset: 'utf8',
        timestamps: false
    }
})
export default mysql
